<%@tag import="chances.system.operator.entity.Organization"%>
<%@tag import="chances.system.operator.repo.OrganizationRepository"%>
<%@tag import="chances.webui.helper.LookupHelper"%>
<%@tag import="chances.webui.model.TreeNode"%>
<%@tag import="java.util.ArrayList"%>
<%@tag import="java.util.List"%>
<%@tag import="org.springframework.context.ApplicationContext"%>
<%@tag import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@ attribute name="var" required="true" type="java.lang.String" rtexprvalue="false" %>
<%
	ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(request.getServletContext());
	OrganizationRepository orgRepository = ac.getBean(OrganizationRepository.class);
	List<Organization> orgs = orgRepository.findAll();
	List<TreeNode<Organization>> result = new ArrayList<TreeNode<Organization>>();
	
%>